package com.lijin.study.designpattern.book.ch04;

public abstract class Employee {
	String name;
	String ID;

	public Employee(String empName, String empID) {
		name = empName;
		ID = empID;
	}

	public String getName() {
		return name;
	}

	public String getID() {
		return ID;
	}

	public String toString() {
		String str = " Emp Name:: " + getName() + " EmpID:: " + getID();
		return str;
	}

	public void save() {
		FileUtil futil = new FileUtil();
		futil.writeToFile("emp.txt", this.toString(), true, true);

	}

	// variable part of the behavior
	public abstract String computeCompensation();
}
